/*
 * @Author: your name
 * @Date: 2022-04-26 11:25:09
 * @LastEditTime: 2022-04-27 17:14:40
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /cscec-pms-admin/src/api/safetySupervision/base/noticeMaintenance.js
 */
import request from '@/utils/request'
import { safetyApiUrl } from '@/api/config'

export default {
  /**
   * @description: 获取列表
   * @param {Object} data：body参数
   * @return {Promise}
   */
  list(data) {
    return request({
      url: safetyApiUrl + '/take-shift-notice/findListByMain', method: 'post', data
    })
  },
  /**
   * @description: 
   * @param {Object} data：body参数
   * @return {Promise}
   */
  create(data) {
    return request({
      url: safetyApiUrl + '/take-shift-notice/createByMain', method: 'post', data
    })
  },
  /**
   * @description: 
   * @param {Object} data：body参数
   * @return {Promise}
   */
  edit(data) {
    return request({
      url: safetyApiUrl + '/take-shift-notice/editByMain', method: 'post', data
    })
  },
  /**
   * @description: 删除
   * @param {String} id：业务id
   * @return {Promise}
   */
  delete(id) {
    return request({
      url: safetyApiUrl + '/take-shift-notice/deleteByMain/' + id, method: 'get'
    })
  },

  /**
   * @description: 详情
   * @param {String} id：业务id
   * @return {Promise}
   */
   getDetail({id}) {
    return request({
      url: safetyApiUrl + '/take-shift-notice/findListByMainId/' + id, method: 'get'
    })
  }
}